package com.qingzhuge.dto.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.qingzhuge.annotation.EntityPropertyNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author : zero.xiao
 * @description :
 * @date :2018/8/8 0008 上午 9:14
 * @since : 1.0.0
 * @modified :
 */
@Setter
@Getter
public abstract class BasePageRequestPkDto<ID extends Serializable> extends BaseRequestPkDto<ID> {
    private static final long serialVersionUID = 4707020506240347385L;
    @ApiModelProperty("功能属性:搜索值")
    @EntityPropertyNull
    @JSONField(serialize = false)
    private transient String keyword;

    @ApiModelProperty("功能属性:搜索字段名")
    @EntityPropertyNull
    @JSONField(serialize = false)
    private transient String searchField;
    @ApiModelProperty("功能属性:排序用")
    @EntityPropertyNull
    @JSONField(serialize = false)
    private transient Boolean asc;

    @ApiModelProperty("功能属性:排序字段")
    @EntityPropertyNull
    @JSONField(serialize = false)
    private transient String orderByField;

    @ApiModelProperty("功能属性:分页数据每页数量")
    @EntityPropertyNull
    @JSONField(serialize = false)
    private transient Integer size;

    @ApiModelProperty("功能属性:分页数据页码")
    @EntityPropertyNull
    @JSONField(serialize = false)
    private transient Integer page;
}
